<?php TPL::output('admin/global/header.tpl.htm'); ?>
<body >
<div id="body-wrapper">
<div id="main-content">
	<div class="clear"></div>
	<div class="content-box">
		<div class="content-box-header">
			<h3>在线用户</h3>
			<span style=" float:left; margin-left:20px; line-height:30px; color:#57A000; font-weight:bold">当前在线(<?php echo get_setting('online_interval');?>分钟内)： <font color="#FF0000" style="font-size:18px;"><?php echo $this->total_count; ?></font>&nbsp 当前时间:<?php echo date("H:i:s");?></span>
			<!--span style=" float:right; margin-right:10px; line-height:50px; color:#57A000;">当前列表 1 分钟更新一次</span-->
			<ul class="content-box-tabs">
			</ul>
			<div class="clear"></div>
		</div>
		<div class="content-box-content">
			<div class="tab-content default-tab" id="tab1">
				<?php if(!$this->list){ ?>
				<div class="notification attention png_bg"> <a href="javascript:;" class="close"><img src="<?php echo G_STATIC_URL;?>/admin/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
					<div> 当前没有在线会员 </div>
				</div>
				<?php }else{ ?>
				<table>
					<thead>
						<tr>
							<!--th><input class="check-all" type="checkbox" /></th-->
							<th>用户ID</th>
							<th>用户名</th>
							<th>活动时间</th>
							<th style=" width:450px;">活动页面</th>
							<th>IP</th>
						</tr>
					</thead>
					<tbody>
						<?php foreach ($this->list AS $key => $val) { ?>
						<tr>
							<td><?php echo $val['uid']; ?></td>
							<td><a href="people/<?php echo $val['userinfo']['user_name']; ?>" target="_blank"><?php echo $val['userinfo']['user_name']; ?></a></td>
							<td><?php echo date("Y-m-d H:i:s", $val['last_active']); ?></td>
							<td><a href="<?php echo $val['active_url']; ?>" target="_blank"><?php echo $val['active_url']; ?></a></td>
							<td><a href="http://www.ip.cn/?q=<?php echo long2ip($val['ip']); ?>" target="_blank"><?php echo long2ip($val['ip']); ?></a></td>
						</tr>
						<?php } ?>
					</tbody>
					<tfoot>
						<tr>
							<td colspan="10"><div class="pagination"> <?php echo $this->pagination; ?> </div>
								<div class="clear"></div></td>
						</tr>
					</tfoot>
				</table>
				<?php } ?>
			</div>
		</div>
		<div class="clear"></div>
		<div id="notf_tip" style="display:none;" class="notification png_bg"> <a href="javascript:;" class="close"><img src="<?php echo G_STATIC_URL;?>/admin/images/icons/cross_grey_small.png" alt="关闭" /></a>
			<div id="notf_cont"></div>
		</div>
	</div>
</div>
<?php TPL::output('admin/global/footer.tpl.htm'); ?>
